package com.cjh.wechat.websocket.service;

import java.util.List;
import com.cjh.wechat.commom.pojo.ChatRecord;
import com.cjh.wechat.commom.vo.ChatRecordVo;

public interface ChatRecordService
{
    public List<ChatRecordVo> getFriendRecord(String myId, String friendId, int pageNum, int pageSize);
    
    public List<ChatRecordVo> getGroupRecord(String groupId, int pageNum, int pageSize);
    
    public int getGroupRecordNum(String groupId);
    
    public int getFriendRecordNum(String myId, String friendId);
    
    public void addFriendRecord(String myId, String friendId, ChatRecord chatRecord);
    
    public void addGroupRecord(String groupId, ChatRecord chatRecord);
}
